package 每日一题OJ;

import java.util.*;

/**
 * @author shy_black
 * @date 2019/3/22 11:09
 * @Description:
 * 输入N名学生成绩，将获得某一给定分数的学生人数输出
 */

public class 统计同成绩学生人数 {
    public static void main(String args[]) {

        int j = 0;
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        ArrayList<Integer> list = new ArrayList<>();
        for(int i = 0;i < N;i++) {
            list.add(sc.nextInt());
        }
        int soc = sc.nextInt();
        sc.close();
        int count = 0;
        for(int t : list) {
            if(soc == t)
                count++;
        }
        System.out.print(count);
    }
}